933261af3565d2896d46074d0c60fe5b50856b90,java/code/src/com/redhat/rhn/manager/ssm/SsmOperationManager.java,SsmOperationManager,createOperation,#User#String#,120
Before Change
throw new IllegalArgumentException("description cannot be null");
}
WriteMode m = ModeFactory.getWriteMode("ssm_queries", "create_operation");
Map<String, Object> params = new HashMap<String, Object>(3);
params.put("user_id", user.getId());
After Change
long operationId = (Long) nextValMap.get("nextval");
// Add the operation data
writeMode = ModeFactory.getWriteMode("ssm_operation_queries", "create_operation");
params.clear();
params.put("op_id", operationId);
params.put("user_id", user.getId());
params.put("description", description);
params.put("status", SsmOperationStatus.IN_PROGRESS.getText());
writeMode.executeUpdate(params);
// Add the server/operation mappings
writeMode =
ModeFactory.getWriteMode("ssm_operation_queries", "map_servers_to_operation");
params.clear();
params.put("op_id", operationId);